<extend name="Public/base" />

<block name="body">
	<!-- 标题栏 -->
	<div class="main-title">
		<h2>工作分类列表</h2>
	</div>
	<div class="cf">
		<div class="fl">
			<a class="btn" href="{:U('typeAdd')}">添加</a>
		</div>
	</div>
	<!-- 数据列表 -->
	<div class="data-table table-striped">
		<table class="">
			<thead>
				<tr>
					<th>ID</th>
					<th>类别名称</th>
					<th>排序</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<notempty name="result"> <volist name="result" id="vo">
				<tr>
					<td>{$vo.id}</td>
					<td><a href="{:U('name?tid='.$vo['id'])}">{$vo.type}</a></td>
					<td>{$vo.state}</td>
					<td>
						<a href="{:U('typeEdit?id='.$vo['id'])}">编辑</a>
						<a href="{:U('typeDelete?id='.$vo['id'])}" class="confirm ajax-get">删除</a>
					</td>
				</tr>
				</volist> <else />
				<td colspan="4" class="text-center">aOh! 暂时还没有内容!</td>
				</notempty>
			</tbody>
		</table>
	</div>
	<div class="page">{$_page}</div>
</block>

<block name="script">
	<script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Work/type')}');
	</script>
</block>
